#ifndef MYBUTTON_H
#define MYBUTTON_H

#include <QWidget>
#include <QEvent>
#include <QMouseEvent>
#include <QPushButton>
#include <QDebug>
class MyButton : public QPushButton
{
    Q_OBJECT
public:
    explicit MyButton(QWidget *parent = nullptr);
    virtual void enterEvent(QEvent *event);
    virtual void leaveEvent(QEvent *event);
    virtual void mouseDoubleClickEvent(QMouseEvent *event);
    virtual void mouseMoveEvent(QMouseEvent *event);
    virtual void mousePressEvent(QMouseEvent *event);
    virtual void mouseReleaseEvent(QMouseEvent *event);
    virtual void wheelEvent(QWheelEvent *event);


    //virtual void keyPressEvent(QKeyEvent * event);

signals:

private:
    QRect windowRect;
    int wheelDistance;
};

#endif // MYBUTTON_H
